const
	Nibbler = require('../lib/Nibbler'),
	Base = require('./base/base');

let base32 = new Nibbler({
    dataBits: 8,
    codeBits: 5,
    keyString: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567',
    pad: '='
});

/**
 * @extends base
 */
module.exports = class extends Base {
	encodeAction(param){
		return base32.encode(param.text);
	}
	decodeAction(param){
		return base32.decode(param.text);
	}
}
